<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View project</title>
        <link href="css/style.css" type="text/css" rel="stylesheet">
        <link rel="stylesheet" href="css/datepicker.css">
        <script language="javascript" type="text/javascript" src="js/ajaxJavascript.js"></script>
        <script language="javascript" type="text/javascript" src="js/datepicker.js"></script>
        <script language="javascript" type="text/javascript" src="js/common.js"></script>
    </head>
   <body>
<TABLE class="tbmain" width="100%">
<TR HEIGHT="150">
<TD align="center" colspan="5"><%@include file="top.jsp"%></TD>
</TR>
<TR HEIGHT="12"><TD colspan="5" bgcolor="black"></TD></TR>
<TR HEIGHT="518">
<TD class="tdleft"><%@include file="left.jsp"%></TD> 
<TD bgcolor="black" width="1%"></TD>
<TD class="tdbody">
		Please input project id here:<input type="text" name="chonID" onkeyup="show_project(this.value)">
		<p id="noProject" class="err"></p>
        <form id="fmView" name="fmView" action="UpdateProjectServlet" onsubmit="checkUpdateInput();">
            <fieldset>
                <legend>View project</legend>
                
               	<table>
               		<tr>
               			<td>Id:</td>
               			<td><input type="text" name="id" id="id"></td>
               			<td class=err id=err_update_id></td>
               		</tr>
               		<tr>
               			<td>Name:</td>
               			<td><input type="text" name="name" id="name"></td>
               			<td class=err id=err_update_name></td>
               		</tr>
               		<tr>
               			<td>Code:</td>
               			<td><input type="text" name="code" id="code"></td>
               			<td class=err id=err_update_code></td>
               		</tr>
               		<tr>
               			<td>Description:</td>
               			<td><input type="text" name="description" id="description"></td>
               			<td class=err id=err_update_description></td>
               		</tr>
               		<tr>
               			<td>Id_type:</td>
               			<td><input type="text" name="id_type" id="id_type"></td>
               			<td class=err id=err_update_id_type></td>
               		</tr>
               		<tr>
               			<td>Pm:</td>
               			<td><input type="text" name="pm" id="pm"></td>
               			<td class=err id=err_update_pm></td>
               		</tr>
               		<tr>
               			<td>Is_template:</td>
               			<td>Yes<input type="radio" name="is_template" id="is_template_true" value="true">No<input type="radio" name="is_template" id="is_template_false" value="false"></td>
               			<td class=err id=err_update_is_template></td>
               		</tr>
               		<tr>
               			<td>Status:</td>
               			<td><input type="text" name="status" id="status"></td>
               			<td class=err id=err_update_status></td>
               		</tr>
               		<tr>
               			<td>Plan_start_date:</td>
               			<td><input type="text" name="plan_start_date" id="plan_start_date"><input type="button" value="..." onclick="javascript:displayDatePicker('plan_start_date',this,'mdy' );"></td>
               			<td class=err id=err_update_plan_start_date></td>
               		</tr>
               		<tr>
               			<td>Plan_end_date:</td>
               			<td><input type="text" name="plan_end_date" id="plan_end_date"><input type="button" value="..." onclick="javascript:displayDatePicker('plan_end_date',this,'mdy' );"></td>
               			<td class=err id=err_update_plan_end_date></td>
               		</tr>
               		<tr>
               			<td>Real_start_date:</td>
               			<td><input type="text" name="real_start_date" id="real_start_date"><input type="button" value="..." onclick="javascript:displayDatePicker('real_start_date',this,'mdy' );"></td>
               			<td class=err id=err_update_real_start_date></td>
               		</tr>
               		<tr>
               			<td>Real_end_date:</td>
               			<td><input type="text" name="real_end_date" id="real_end_date"><input type="button" value="..." onclick="javascript:displayDatePicker('real_end_date',this,'mdy' );"></td>
               			<td class=err id=err_update_real_end_date></td>
               		</tr>
               		<tr>
               			<td>Created:</td>
               			<td><input type="text" name="created" id="created"></td>
               			<td class=err id=err_update_created></td>
               		</tr>
               		<tr>
               			<td>Creator:</td>
               			<td><input type="text" name="creator" id="creator"></td>
               			<td class=err id=err_update_creator></td>
               		</tr>
               		<tr>
               			<td>Updated:</td>
               			<td><input type="text" name="updated" id="updated"></td>
               			<td class=err id=err_update_updated></td>
               		</tr>
               		<tr>
               			<td>Updator:</td>
               			<td><input type="text" name="updator" id="updator"></td>
               			<td class=err id=err_update_updator></td>
               		</tr>
               		<tr>
               			<td>Deleted:</td>
               			<td>Yes<input type="radio" name="deleted" id="deleted_true" value="true">No<input type="radio" name="deleted" id="deleted_false" value="false"></td>
               			<td class=err id=err_update_deleted></td>
               		</tr>
               		<tr>
               			<td>Deletion_time:</td>
               			<td><input type="text" name="deletion_time" id="deletion_time"></td>
               			<td class=err id=err_update_deletion_time></td>
               		</tr>
               		<tr>
               			<td>Id_company:</td>
               			<td><input type="text" name="id_company" id="id_company"></td>
               			<td class=err id=err_update_id_company></td>
               		</tr>
               	</table>
               	<input type="submit" value="Edit">
               
            </fieldset>
        </form>
    </TD>
<TD bgcolor="black" width="1%"></TD>
<TD class="tdright" vAlign="top"><%@include file="right.jsp"%></TD>
</TR>
<TR HEIGHT="12"><TD colspan="5" bgcolor="black"></TD></TR>
<TR HEIGHT="100">
<TD colspan="5" align="center"><%@include file="bottom.jsp"%></TD>
</TR>
</TABLE>
</body>
</html>
